# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=amtk
pkgver=5.3.1
pkgrel=0
pkgdesc="Actions, Menus and Toolbars Kit for GTK+ applications"
url="https://wiki.gnome.org/Projects/Amtk"
arch="all"
license="LGPL-2.1-or-later"
makedepends="gtk-doc gtk+3.0-dev glib-dev gobject-introspection-dev meson"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/amtk/${pkgver%.*}/amtk-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dgtk_doc=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2b751fd4cef21e03e80e8dd5c7c21b399586eb3232251a1714a5013b74adfb24abacf9717f51b2200e335fd73876b1273fd4952a4bb925cf944987eb4c17c93f  amtk-5.3.1.tar.xz
"
